package cn.edu.scau.cmi.ema.dao;

import cn.edu.scau.cmi.ema.base.CmiPagination;
import cn.edu.scau.cmi.ema.domain.Adultertype;
import org.springframework.dao.DataAccessException;

import java.util.Set;

public interface AdultertypeDAO extends JpaDao<Adultertype> {

	public Adultertype findAdultertypeById(Integer id) throws DataAccessException;

	public Adultertype findAdultertypeById(Integer id, int startResult, int maxRows) throws DataAccessException;

	public Set<Adultertype> findAdultertypeByName(String name) throws DataAccessException;

	public Set<Adultertype> findAdultertypeByName(String name, int startResult, int maxRows) throws DataAccessException;

	public Set<Adultertype> findAdultertypeByNameContaining(String name_1) throws DataAccessException;

	public Set<Adultertype> findAdultertypeByNameContaining(String name_1, int startResult, int maxRows)
			throws DataAccessException;

	public Set<Adultertype> findAdultertypeByDescription(String description) throws DataAccessException;

	public Set<Adultertype> findAdultertypeByDescription(String description, int startResult, int maxRows)
			throws DataAccessException;

	public Set<Adultertype> findAdultertypeByDescriptionContaining(String description_1) throws DataAccessException;

	public Set<Adultertype> findAdultertypeByDescriptionContaining(String description_1, int startResult, int maxRows)
			throws DataAccessException;

	public Adultertype findAdultertypeByPrimaryKey(Integer id) throws DataAccessException;

	public Adultertype findAdultertypeByPrimaryKey(Integer id, int startResult, int maxRows) throws DataAccessException;

	public Set<Adultertype> findAdultertypesByIds(Set<Integer> ids) throws DataAccessException;

	public Set<Adultertype> findAllAdultertypes() throws DataAccessException;

	public Set<Adultertype> findAllAdultertypes(int startResult, int maxRows) throws DataAccessException;

	public Set<Adultertype> findAdultertypeByCompositeProperities(String sql, int startResult, int maxRows)
			throws DataAccessException;

	public Set<Adultertype> findAdultertypesByDetachedCriteria(CmiPagination page) throws DataAccessException;

	public Adultertype findAdultertypeByPhysicalPrimaryKey(String name) throws DataAccessException;

	public Adultertype findAdultertypeByPhysicalPrimaryKey(String name, int startResult, int maxRows)
			throws DataAccessException;
}
